//
//  DrawToRecordViewController.m
//  JiJinFinance
//
//  Created by 李东晓 on 15/12/10.
//  Copyright © 2015年 LiDongXiao. All rights reserved.
//

#import "DrawToRecordViewController.h"
#import "DrawToRecordCollectionViewCell.h"
@interface DrawToRecordViewController ()<UICollectionViewDataSource,UICollectionViewDelegate>
@property (nonatomic ,strong)UICollectionView * RecCollectionView;
@end

@implementation DrawToRecordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    self.title = @"提现记录";
    [self.view setBackgroundColor:RGBAColor(246, 246, 246, 1)];
    [self RecCollectionView];
}
-(UICollectionView * )RecCollectionView
{
    if (!_RecCollectionView) {
        UICollectionViewFlowLayout * flowLayout = [[UICollectionViewFlowLayout alloc]init];
        flowLayout.itemSize = CGSizeMake(375*D_width, 90);
        
        flowLayout.minimumInteritemSpacing = 11;
        
        flowLayout.minimumLineSpacing = 11;
        
        flowLayout.sectionInset = UIEdgeInsetsMake(33, 0, 11, 0);
        _RecCollectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, kUIScreenWidth, kUIScreenHeight) collectionViewLayout:flowLayout];
        [_RecCollectionView setBackgroundColor:kGlobalBg];
        [_RecCollectionView setDelegate:self];
        [_RecCollectionView setDataSource:self];
        [self.view addSubview:_RecCollectionView];
        
        [_RecCollectionView registerClass:[DrawToRecordCollectionViewCell class] forCellWithReuseIdentifier:@"cellId"];
    }
    return _RecCollectionView;
}
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 4;
}
-(UICollectionViewCell * )collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    DrawToRecordCollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cellId" forIndexPath:indexPath];
    
    [cell setBackgroundColor:[UIColor whiteColor]];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
